<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%--导入数据库连接类和SQL相关类--%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
    /*获取当前项目根路径*/
String path = request.getContextPath();
/*构建基础路径。用于生成完整的UPL（协议+服务器名+端口+路径）*/
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <%-- 包含公共头部文件，通常包含CSS、meta标签等 --%>
<jsp:include flush="true" page="${basePath}/admin/head.jsp"></jsp:include>
<script src="<%=path %>/admin/js/jquery.js" type="text/javascript"></script>
<script src="<%=path %>/admin/js/formValidator.js" type="text/javascript"></script>  
<script src="<%=path %>/admin/js/formValidatorRegex.js" type="text/javascript"></script>
<link href="<%=path %>/admin/css/validator.css" rel="stylesheet" type="text/css" />

 </head>

 <body class="ms-body ms-aside-left-open ms-primary-theme ms-has-quickbar">
    <!-- Body Content Wrapper -->
    <div class="ms-content-wrapper">
        <div class="row">
            <div class="col-md-12">
                   <div class="ms-panel">
        <div class="ms-panel-header ms-panel-custome">
            <h6>修改密码</h6>
        </div>
        <div class="ms-panel-body">
            <div class="table-responsive">
                <table id="data-table10" class="table w-100 thead-primary">
                    <tr>
                        <td>
<%--                             密码修改表单，提交到admin_Pass处理 --%>
						<form  action="<%=path %>/admin_Pass" method="post">
		 <table style="width:100%;" id="ctl001">
    <tr>
    <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>原密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd" id="txt_pwd" type="password" /></div><div id="txt_pwdTip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>
    <tr>
        <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>新密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd2" id="txt_pwd2" type="password" /></div><div id="txt_pwd2Tip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>
        <tr>
        <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>确认密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd3"  id="txt_pwd3" type="password" /></div><div id="txt_pwd3Tip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>


    <tr>
        <td>&nbsp;</td>
        <td align="left">
            <%--提交按钮，点击时会触发表单--%>
 <input type="submit" name="btnAdd" value="确 定" onclick="return jQuery.formValidator.PageIsValid('1');" id="btnAdd"    class="btn" />
            </td>
    </tr>
</table>
           </form>
    <%--表单验证脚本--%>
	<script language="javascript" type="text/javascript">
       /*当文档加载完成后执行*/
    $(document).ready(function () {
        $.formValidator.initConfig({ onError: function (msg) { alert(msg) } });
        $("#txt_pwd").formValidator({ onshow: "请输入原密码", onfocus: "原密码不能为空", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "原密码不能为空,请确认" });
        $("#txt_pwd2").formValidator({ onshow: "请输入新密码", onfocus: "新密码不能为空", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "新密码不能为空,请确认" });
        $("#txt_pwd3").formValidator({ onshow: "请输入重复密码", onfocus: "两次密码必须一致哦", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "重复密码不能为空,请确认" });
    });
</script>


                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

            </div>
        </div>
    </div>

</body>
</html>






